import request from '@/utils/request'

export const code = key => request.get('/captcha', {
  responseType: 'arraybuffer',
  params: {
    key
  }})

export const login = data => request.post('/login', data)
